<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">

    <head th:include="include :: header"></head>
    <link rel="stylesheet" th:href="@{/css/plugins/bootstrap-4.3.1-dist/css/bootstrap.min.css}">
    <style>
        li{ list-style: none;}
    </style>
	<body class="gray-bg">
    <!--<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">-->
    <!--<script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>-->
    <!--<script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>-->
    <!--<script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>-->
            <div class="wrapper wrapper-content animated fadeInRight">
                <div class="container">

                    <!--<p><strong>注意:</strong> 使用 <strong>data-parent</strong> 属性来确保所有的折叠元素在指定的父元素下，这样就能实现在一个折叠选项显示时其他选项就隐藏。</p>-->
                    <div id="accordion">
                        <div class="card">
                            <div class="card-header">
                                <a class="card-link" data-toggle="collapse" href="#collapseOne">
                                    批次号
                                </a>
                            </div>
                            <div id="collapseOne" class="collapse show" >
                                <div class="card-body">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    批次：
                                                </label>
                                                <div class="col-sm-10">
                                                     <input class="form-control" type="text" th:value="${result.batch}" readonly>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseTwo">
                                    产品名称
                                </a>
                            </div>
                            <div id="collapseTwo" class="collapse">
                                <div class="card-body">
                                    <!--<input  class="form-control" type="text" th:value="${result.batch}" readonly>-->
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    产品名称：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${result.productName}" readonly>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseThree">
                                    产品信息
                                </a>
                            </div>
                            <div id="collapseThree" class="collapse" >
                                <div class="card-body">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    产品规格：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${result.productInfo.productSpec}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    保质期：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${result.productInfo.warranty}" readonly>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                            </div>
                        </div>
                    </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseFour">
                                    原材料信息
                                </a>
                            </div>
                            <div id="collapseFour" class="collapse" >
                                <div class="card-body" th:each="item,index : ${result.materialAndSupplierInfo}">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    原材料名称：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.materialName}" readonly>
                                                </div>
                                            </div>

                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--生产日期：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--&lt;!&ndash;<input class="form-control" type="text" th:value="${#dates.format(item.dateOfProduction, 'yyyy-MM-dd')}" readonly>&ndash;&gt;-->

                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:if="${item.dateOfProduction != null}"-->
                                                           <!--th:value="${#dates.format(item.dateOfProduction, 'yyyy-MM-dd')}"-->
                                                           <!--readonly>-->

                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:unless="${item.dateOfProduction != null}"-->
                                                           <!--th:value="${item.dateOfProduction}"-->
                                                           <!--readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    保质期：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.shelflife}" readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    入库批次：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.purchaseNo}" readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    入库时间：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text"
                                                           th:if="${item.inStockDate != null}"
                                                           th:value="${#dates.format(item.inStockDate, 'yyyy-MM-dd')}"
                                                           readonly>

                                                    <input class="form-control" type="text"
                                                           th:unless="${item.inStockDate != null}"
                                                           th:value="${item.inStockDate}"
                                                           readonly>
                                                </div>
                                            </div>
                                            <h5 class="page-header"></h5>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseFive">
                                    供应商信息
                                </a>
                            </div>
                            <div id="collapseFive" class="collapse" >
                                <div class="card-body" th:each="item,index : ${result.materialAndSupplierInfo}">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                    <div class="form-group">
                                    <label class="col-sm-1 control-label">
                                    供应商名称：
                                    </label>
                                    <div class="col-sm-11">
                                    <input class="form-control" type="text" th:value="${item.supplierName}" readonly>
                                    </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">
                                            联系人：
                                        </label>
                                        <div class="col-sm-11">
                                            <input class="form-control" type="text" th:value="${item.linkman}" readonly>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-1 control-label">
                                            联系方式：
                                        </label>
                                        <div class="col-sm-11">
                                            <input class="form-control" type="text" th:value="${item.tel}" readonly>
                                        </div>
                                    </div>
                                    <h5 class="page-header"></h5>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseSex">
                                    生产信息
                                </a>
                            </div>
                            <div id="collapseSex" class="collapse" >
                            <div class="card-body">
                                <div class="ibox-content">
                                    <form class="form-horizontal">
                            <div class="form-group">
                            <label class="col-sm-2 control-label">
                            生产组：
                            </label>
                            <div class="col-sm-10">
                            <input class="form-control" type="text" th:value="${result.produceInfo.marshallingName}" readonly>
                            </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">
                                    添加剂信息：
                                </label>
                                <div class="col-sm-10">
                                    <!--<input class="form-control" type="text" th:value="${result.produceInfo.marshallingName}" readonly>-->
                                    <table class="table table-bordered">
                                        <thead>
                                        <tr>
                                            <th>原材料批次</th>
                                            <th>原料名称</th>
                                            <th>原料数量</th>
                                            <th>原料单位</th>
                                            <th>原料规格</th>
                                            <th>称量人</th>
                                            <th>复核人</th>
                                            <th>配添加剂时间</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr th:each="item,index : ${result.produceInfo.additiveInfo}">
                                            <td>
                                                <ul th:each="materialsItem,i : ${item.materials}">
                                                    <li th:text="${materialsItem.batch}"></li>
                                                </ul>
                                            </td>
                                            <td>
                                                <ul th:each="materialsItem,i : ${item.materials}">
                                                    <li th:text="${materialsItem.materialName}"></li>
                                                </ul>
                                            </td>

                                            <td>
                                                <ul th:each="materialsItem,i : ${item.materials}">
                                                    <li th:text="${materialsItem.materialSize}"></li>
                                                </ul>
                                            </td>

                                            <td>
                                                <ul th:each="materialsItem,i : ${item.materials}">
                                                    <li th:text="${materialsItem.unit}"></li>
                                                </ul>
                                            </td>

                                            <td>
                                                <ul th:each="materialsItem,i : ${item.materials}">
                                                    <li th:text="${materialsItem.specs}"></li>
                                                </ul>
                                            </td>

                                            <td th:text="${item.weighingBy}">

                                            </td>

                                            <td th:text="${item.checkBy}">

                                            </td>

                                            <td th:if="${item.additiveDate != null}" th:text="${#dates.format(item.additiveDate, 'yyyy-MM-dd')}">

                                            </td>
                                            <td th:unless="${item.additiveDate != null}" th:text="${item.additiveDate}">

                                            </td>

                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <h5 class="page-header"></h5>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">
                                                配料投料信息：
                                            </label>
                                            <div class="col-sm-10">
                                                <!--<input class="form-control" type="text" th:value="${result.produceInfo.marshallingName}" readonly>-->
                                                <table class="table table-bordered">
                                                    <thead>
                                                    <tr>
                                                        <th>班组</th>
                                                        <th>配料名称</th>
                                                        <th>配料批次</th>
                                                        <th>配料数量</th>
                                                        <th>配料单位</th>
                                                        <th>水温</th>
                                                        <th>配料水重量</th>
                                                        <th>出料温度</th>
                                                        <th>投料数量</th>
                                                        <th>投料单位</th>
                                                        <th>投料时间</th>
                                                        <th>投料负责人</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody>
                                                    <tr th:each="item,index : ${result.produceInfo.scBatFeeDOS}">

                                                        <td th:text="${item.marshallingName}">

                                                        </td>

                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.materialName}"></li>
                                                            </ul>
                                                        </td>

                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.batch}"></li>
                                                            </ul>
                                                        </td>

                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.batchingSize}"></li>
                                                            </ul>
                                                        </td>

                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.unit}"></li>
                                                            </ul>
                                                        </td>

                                                        <!--<td>-->
                                                            <!--<ul th:each="materialsItem,i : ${item.materials}">-->
                                                                <!--<li th:text="${materialsItem.specs}"></li>-->
                                                            <!--</ul>-->
                                                        <!--</td>-->

                                                        <td th:text="${item.temperature}">

                                                        </td>

                                                        <td th:text="${item.waterWeight}">

                                                        </td>

                                                        <td th:text="${item.outTemperature}">

                                                        </td>

                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.feedingSize}"></li>
                                                            </ul>
                                                        </td>


                                                        <td>
                                                            <ul th:each="materialsItem,i : ${item.materials}">
                                                                <li th:text="${materialsItem.unit}"></li>
                                                            </ul>
                                                        </td>

                                                        <td th:if="${item.feedingDate != null}" th:text="${#dates.format(item.feedingDate, 'yyyy-MM-dd')}">

                                                        </td>
                                                        <td th:unless="${item.feedingDate != null}" th:text="${item.feedingDate}">

                                                        </td>

                                                        <td th:text="${item.leadingOfficial}">

                                                        </td>

                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseSeven">
                                    入库信息
                                </a>
                            </div>
                            <div id="collapseSeven" class="collapse">
                                <div class="card-body">
                                    <!--<input  class="form-control" type="text" th:value="${result.batch}" readonly>-->
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    生产日期：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${#dates.format(result.produceDateInfo, 'yyyy-MM-dd')}" readonly>-->
                                                    <input class="form-control" type="text"
                                                           th:if="${result.produceDateInfo != null}"
                                                           th:value="${#dates.format(result.produceDateInfo, 'yyyy-MM-dd')}"
                                                           readonly>

                                                    <input class="form-control" type="text"
                                                           th:unless="${result.produceDateInfo != null}"
                                                           th:value="${result.produceDateInfo}"
                                                           readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    入库数量：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${#dates.format(result.produceDateInfo, 'yyyy-MM-dd')}" readonly>-->
                                                    <input class="form-control" type="text"
                                                           th:value="${result.warehousingRecord.number}"
                                                           readonly>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseEight">
                                    出库订单信息
                                </a>
                            </div>
                            <div id="collapseEight" class="collapse">
                                <div class="card-body" >
                                    <!--<input  class="form-control" type="text" th:value="${result.batch}" readonly>-->
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    产品总数量：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${result.sumProduct}" readonly>
                                                </div>
                                            </div>
                                        </form>
                                        <h5 class="page-header"></h5>
                                        <div th:each="item,index : ${result.invoiceInfo}">
                                        <form class="form-horizontal" >
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    订单编号：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.invoiceId}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    经销商：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.agentName}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    联系人：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.linkman}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    联系电话：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.tel}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    发货时间：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${#dates.format(item.deliverDate, 'yyyy-MM-dd HH:mm:ss')}" readonly>-->
                                                    <input class="form-control" type="text"
                                                           th:if="${item.deliverDate != null}"
                                                           th:value="${#dates.format(item.deliverDate, 'yyyy-MM-dd HH:mm:ss')}"
                                                           readonly>

                                                    <input class="form-control" type="text"
                                                           th:unless="${item.deliverDate != null}"
                                                           th:value="${item.deliverDate}"
                                                           readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    数量：
                                                </label>
                                                <div class="col-sm-10">
                                                <!--<ul th:each="productItem,i : ${item.products}" style="padding: 0">-->
                                                    <!--<li>-->
                                                        <!--<input class="form-control" type="text" th:value="${productItem.productSize}" readonly>-->
                                                    <!--</li>-->
                                                <!--</ul>-->
                                                    <input class="form-control" type="text" th:value="${item.sumPro}" readonly>

                                                </div>
                                            </div>
                                        </form>
                                            <h5 class="page-header"></h5>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseNine">
                                    检测信息
                                </a>
                            </div>
                            <div id="collapseNine" class="collapse">
                                <div class="card-body">
                                    <!--<input  class="form-control" type="text" th:value="${result.batch}" readonly>-->
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            原材料：
                                            <div th:each="item,i : ${result.checkInfo.purchaseCheck}">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">
                                                        原材料名称：
                                                    </label>
                                                    <div class="col-sm-10">
                                                        <input class="form-control" type="text" th:value="${item.materialName}" readonly>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">
                                                        原材料检测：
                                                    </label>
                                                    <div class="col-sm-10">
                                                        <!--<input class="form-control" type="text" th:value="${result.checkInfo}" readonly>-->
                                                        <table class="table table-bordered">
                                                            <thead>
                                                            <tr>
                                                                <th th:each="recordItem,x : ${item.checkRecordArrtVO.recordArrtVOList}">
                                                                    <span th:text="${recordItem.arrtName}"></span>
                                                                </th>
                                                            </tr>
                                                            </thead>
                                                            <tbody>
                                                            <tr>
                                                                <td th:each="recordItem,x : ${item.checkRecordArrtVO.recordArrtVOList}">
                                                                    <span  th:text="${recordItem.arrtValues}"></span>
                                                                </td>
                                                            </tr>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                </div>
                                                <h5 class="page-header"></h5>
                                            </div>
                                        </form>
                                        <h5 class="page-header"></h5>
                                        <form class="form-horizontal">
                                            产品：
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    产品名称：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${result.productName}" readonly>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    产品检测：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${result.checkInfo}" readonly>-->
                                                    <table class="table table-bordered">
                                                        <thead>
                                                        <tr>
                                                            <th th:each="item,i : ${result.checkInfo.productCheck.recordArrtVOList}">
                                                                <span th:text="${item.arrtName}"></span>
                                                            </th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr>
                                                            <td th:each="item,i : ${result.checkInfo.productCheck.recordArrtVOList}">
                                                                <span  th:text="${item.arrtValues}"></span>
                                                            </td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseTen">
                                    品控巡查信息
                                </a>
                            </div>
                            <div id="collapseTen" class="collapse" >
                                <div class="card-body" th:each="item,index : ${result.qaPatrol}">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    巡查时间：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${#dates.format(result.qaPatrol.patrolDate, 'yyyy-MM-dd')}" readonly>-->
                                                    <input class="form-control" type="text"
                                                           th:if="${item.patrolDate != null}"
                                                           th:value="${#dates.format(item.patrolDate, 'yyyy-MM-dd  HH:mm:ss')}"
                                                           readonly>

                                                    <input class="form-control" type="text"
                                                           th:unless="${item.patrolDate != null}"
                                                           th:value="${item.patrolDate}"
                                                           readonly>
                                                </div>
                                            </div>

                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--巡查产线：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--<input class="form-control" type="text" th:value="${result.qaPatrol.abnormalSituation}" readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    异常情况：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.otherAbnormalSituation}" readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    检测人：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.checkName}" readonly>
                                                </div>
                                            </div>
                                            <h5 class="page-header"></h5>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseEleven">
                                    品控抽查信息
                                </a>
                            </div>
                            <div id="collapseEleven" class="collapse" >
                                <div class="card-body" th:each="item,index : ${result.qaCheck}">
                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    抽查时间：
                                                </label>
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${#dates.format(result.qaSpotCheck.checkDate, 'yyyy-MM-dd')}" readonly>-->
                                                    <input class="form-control" type="text"
                                                           th:if="${item.checkDate != null}"
                                                           th:value="${#dates.format(item.checkDate, 'yyyy-MM-dd  HH:mm:ss')}"
                                                           readonly>

                                                    <input class="form-control" type="text"
                                                           th:unless="${item.checkDate != null}"
                                                           th:value="${item.checkDate}"
                                                           readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    包装材料：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.packingMaterial}" readonly>
                                                    <!--<p th:utext="${result.qaCheck.packingMaterial}"></p>-->
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    半成品净含量：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.halfNetContent}" readonly>
                                                    <!--<p th:utext="${result.qaCheck.halfNetContent}"></p>-->
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    半成品玻璃瓶：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.halfGlassBottle}" readonly>
                                                    <!--<p th:utext="${result.qaCheck.halfGlassBottle}"></p>-->
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    成品标签：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.productLabel}" readonly>
                                                    <!--<p th:utext="${result.qaCheck.productLabel}"></p>-->
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    衡器校验：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.weighingCheck}" readonly>
                                                </div>
                                            </div>

                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">
                                                    检测人：
                                                </label>
                                                <div class="col-sm-10">
                                                    <input class="form-control" type="text" th:value="${item.checkName}" readonly>
                                                </div>
                                            </div>
                                            <h5 class="page-header"></h5>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card">
                            <div class="card-header">
                                <a class="collapsed card-link" data-toggle="collapse" href="#collapseTwelve">
                                    留样管理信息
                                </a>
                            </div>
                            <div id="collapseTwelve" class="collapse" >
                                <div class="card-body" >

                                    <div class="ibox-content">
                                        <form class="form-horizontal">
                                            <div class="form-group">
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--配料投料信息：-->
                                                <!--</label>-->
                                                <div class="col-sm-10">
                                                    <!--<input class="form-control" type="text" th:value="${result.produceInfo.marshallingName}" readonly>-->
                                                    <table class="table table-bordered">
                                                        <thead>
                                                        <tr>
                                                            <th>取样时间</th>
                                                            <th>取样数量</th>
                                                            <th>留样温度</th>
                                                            <th>记录人</th>
                                                            <th>备注</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <tr th:each="item,index : ${result.keepSample}">
                                                            <td th:if="${item.sampleDate != null}" th:text="${#dates.format(item.sampleDate, 'yyyy-MM-dd HH:mm:ss')}">

                                                            </td>
                                                            <td th:unless="${item.sampleDate != null}" th:text="${item.sampleDate  hh:mm:ss}">

                                                            </td>

                                                            <td th:text="${item.number}">
                                                            </td>

                                                            <td th:if="${item.sampleTemperature eq 1}"
                                                                th:text="常温">
                                                            </td>

                                                            <td th:if="${item.sampleTemperature eq 0}"
                                                                th:text="恒温">
                                                            </td>

                                                            <td th:text="${item.name}">
                                                            </td>

                                                            <td th:text="${item.remake}">
                                                            </td>
                                                        </tr>
                                                        </tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </form>
                                    </div>


                                    <!--<div class="ibox-content">-->
                                        <!--<form class="form-horizontal">-->
                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--取样时间：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:if="${result.keepSample.sampleDate != null}"-->
                                                           <!--th:value="${#dates.format(result.keepSample.sampleDate, 'yyyy-MM-dd HH:mm')}"-->
                                                           <!--readonly>-->

                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:unless="${result.keepSample.sampleDate != null}"-->
                                                           <!--th:value="${result.keepSample.sampleDate}"-->
                                                           <!--readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--取样数量：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--<input class="form-control" type="text" th:value="${result.keepSample.number}" readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--留样温度：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:if="${result.keepSample.sampleTemperature eq 0}"-->
                                                           <!--value="恒温" readonly>-->
                                                    <!--<input class="form-control" type="text"-->
                                                           <!--th:if="${result.keepSample.sampleTemperature eq 1}"-->
                                                           <!--value="常温"-->
                                                           <!--readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <!--<div class="form-group">-->
                                                <!--<label class="col-sm-2 control-label">-->
                                                    <!--记录人：-->
                                                <!--</label>-->
                                                <!--<div class="col-sm-10">-->
                                                    <!--<input class="form-control" type="text" th:value="${result.keepSample.name}" readonly>-->
                                                <!--</div>-->
                                            <!--</div>-->

                                            <!--<h5 class="page-header"></h5>-->
                                        <!--</form>-->
                                    <!--</div>-->
                                </div>
                            </div>
                        </div>
                    </div>
                    <a class="btn btn-primary pull-right" style="margin-top: 10px"  href="#" onClick="javascript :history.go(-1);">返回</a>
                </div>
        </div>
    <script th:src="@{/js/plugins/jquery-3.2.1/jquery-3.2.1.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap-4.3.1-dist/js/bootstrap.min.js}"></script>
    <div th:include="include::footer"></div>

    <script type="text/javascript">

    </script>

	</body>

</html>